Salt Essentials by Craig Sebenik and Thomas Hatch
Author:Craig Sebenik and Thomas Hatch
Language: eng
Format: mobi
Publisher: O'Reilly Media, Inc.
Published: 2015-06-14T16:00:00+00:00
[vagrant@master ~]$ cat /srv/salt/file/base/jinja/list_item.sls {% set list1 = ['one', 'two', 'three'] %} jinja_list_item: cmd.run: - name: echo "List item 2 is {{ list1[2] }}"
[vagrant@master ~]$ sudo salt master.example state.show_sls jinja.list_item master.example: ---------- jinja_list_item: <snip> name: echo "List item 2 is three" <snip>
Jinja includes dictionaries (hashes) as well. And, just as with the list type, you can refer to an individual item using the same syntax as you would use in Python:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Disaster & Recovery | Email Administration |
Linux & UNIX Administration | Storage & Retrieval |
Windows Administration |
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7791)
Grails in Action by Glen Smith Peter Ledbrook(7705)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6653)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6645)
Running Windows Containers on AWS by Marcio Morales(6167)
Kotlin in Action by Dmitry Jemerov(5074)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4963)
Combating Crime on the Dark Web by Nearchos Nearchou(4550)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4428)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4424)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4214)
The Age of Surveillance Capitalism by Shoshana Zuboff(3964)
Python for Security and Networking - Third Edition by José Manuel Ortega(3787)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3515)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3454)
Mastering Python for Networking and Security by José Manuel Ortega(3359)
Learn Wireshark by Lisa Bock(3348)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3337)
Blockchain Basics by Daniel Drescher(3308)
